package com.globallogic.vkulyk.SSHTool;

public abstract class ActionDataKeeper {
	String type = "";
	String user = "";
	String password = "";

	public ActionDataKeeper(String t, String u, String p) {
		type = t;
		user = u;
		password = p;
	}

	public String getType() {
		return type;
	}

	public String getUser() {
		return user;
	}

	public String getPassword() {
		return password;
	}

	public int hashCode() {
		return type.hashCode() + user.hashCode() + password.hashCode();
	}

	public boolean equals(Object thatObj) {
		if (this == thatObj) return true;
		return thatObj instanceof ActionDataKeeper
				&& type.equals(((ActionDataKeeper) thatObj).getType())
				&& user.equals(((ActionDataKeeper) thatObj).getUser())
				&& password.equals(((ActionDataKeeper) thatObj).getPassword());
	}
	
	public String toString() {
		return  type + " " + user + " " + password;
	}

}
